package com.panda.entity.po;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * (TArticle)表实体类
 *
 * @author makejava
 * @since 2022-05-15 11:13:20
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("t_article")
public class Article extends Model<Article> {

    @TableId(type = IdType.AUTO)
    private Long id;

    private String title;

    private String content;

    //分类
    private Long categoryId;

    private String categoryName;

    private String thumbnail;

    private String isAudit;
    //原创或转载
    private String copyright;

    private String isTop;

    private Long views;

    private String isComment;

    private String delFlag;

    private Integer likes;

    @TableField(fill = FieldFill.INSERT)
    private Long createBy;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateBy;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

}

